package com.dxy.dxyadmin.repository;

import com.dxy.dxyadmin.DO.RolePermission;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * junfeng 2018/11/6
 */
public interface RolePermissionRepository extends JpaRepository<RolePermission, Integer> {

    /**
     * 通过角色ID查找权限ID
     *
     * @param roleId
     * @return
     */
    List<RolePermission> findByRoleId(Integer roleId);


}
